<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Js-九九乘法表</title>
    <link rel="stylesheet" href="../css/jiujiu.css">
</head>
<body>
    <table class="table"></table>
    <script>
        function generateTable() {
            const table = document.querySelector('.table');
            for (let i = 1; i <= 9; i++) {
                let row = table.insertRow();
                for (let j = 1; j <= i; j++) {
                    let cell = row.insertCell();
                    cell.textContent = `${j}×${i}=${i * j}`;
                }
            }
        }
        generateTable();
    </script>

</body>
</html>